<%@ page language="java" import="java.util.*,bookstore.tools.*,bookstore.database.pojo.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Customer cus = (Customer) session.getAttribute("customer");
	if (cus == null) {
		request.getRequestDispatcher("login.jsp").forward(request,
				response);
	} else {
		if (!Tools.isCustomerSeller(cus.getEmail())) {
			request.getRequestDispatcher("apply.jsp").forward(request,
					response);
		}
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>填写售书信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="/css/my.css">
	

  </head>
  
  <body>
  
   <table width="80%" border="0" align="center">
  <tr>
    <td><jsp:include flush="true" page="head.jsp"></jsp:include></td>
  </tr>
  <tr>
    <td><form action="bookSubmit.do" method="post" ><table width="100%" border="1" bordercolor="#FF9999">
      <tr>
        <td class="style5">填写售书信息<hr/></td>
      </tr>
      <tr>
        <td>数量：
          <input type="text" name="booknum" /></td>
      </tr>
      <tr>
        <td>新旧程度：          
          <select name="degree" size="1">
            <option selected="selected">全新</option>
            <option>七成新及以上</option>
            <option>七成新以下</option>
          </select>
          </td>
      </tr>
      <tr>
        <td>单价：
          <input type="text" name="saleprice" /><hr />
          </td>
      </tr>
      <tr>
        <td><input type="submit" name="Submit" value="完成" /></td>
      </tr>
    </table></form></td>
  </tr>
  <tr>
    <td><jsp:include flush="true" page="tail.jsp"></jsp:include></td>
  </tr>
</table>
  </body>
</html>
